package com.dek.ssm.ch11.multi.aspects;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

public class Aspect1 {
	
	@Pointcut("execution(* com.dek.ssm.ch11.mutil.impl.MultiBeanImpl.testMulti(..))")
	public void print1() {
		
	}
	
	@Before (" print ()")
	public void before () {
		System.out.println ( " before 1 ......");
	}
	@After ("print ()")
	public void after() {
		System . out .println (" after 1 ......");
	}
	@AfterThrowing ("print ()")
	public void afterThrowing() {
		System . out . println (" afterThrowing 1 ......");
	}
	@AfterReturning ("print()")
	public void afterReturning() {
		System.out . println (" afterReturning 1 ......");
	}
	
	
	
}
